-
Notifications
You must be signed in to change notification settings - Fork 0
[FIX] response가 다른 컬럼 default 값 설정 #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary of ChangesHello @rhkrwngud445, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 Pull Request는 응답 데이터에서 특정 필드가 누락될 경우 발생할 수 있는 문제를 해결하기 위해 엔티티 필드에 기본값을 설정하고, Home 화면의 데이터 로딩 로직에서 에러 처리 메커니즘을 개선합니다. 또한, 애플리케이션의 버전 코드를 업데이트하여 전반적인 안정성과 견고성을 향상시키는 것을 목표로 합니다. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
이 PR은 일부 엔티티 필드에 기본값을 추가하여 API 응답 불일치 문제를 해결하고, HomeViewModel의 오류 처리를 개선했습니다. 변경 사항은 올바른 방향이지만, 코드의 명확성과 일관성을 위해 몇 가지 개선점을 제안합니다. MemberInfoEntity의 nullable 필드에 null을 기본값으로 사용하는 것과 HomeViewModel의 불필요한 import 제거에 대한 의견을 확인해주세요.
| val nickname: String, | ||
| val imageUrl: String?, | ||
| val notificationAgreedAt: String?, | ||
| val notificationAgreedAt: String? = "", // TODO #Issue: 52 Default 값 추후 제거 필요 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notificationAgreedAt 속성은 nullable(String?)이므로, null이 값의 부재를 나타내는 유효한 상태임을 시사합니다. 기본값으로 빈 문자열 ""을 사용하는 것은 혼란을 줄 수 있습니다. nullable 타입에는 null을 기본값으로 사용하는 것이 더 관용적입니다. 이렇게 하면 API 응답에서 필드가 누락되었을 때의 의도를 더 명확하게 코드에 나타낼 수 있습니다.
만약 이후의 코드에서 non-null 문자열이 필요하다면, null인 경우를 그쪽에서 처리하거나(예: ?: ""), null이 절대로 예상되는 상태가 아니라면 타입을 String으로 변경하는 것을 고려해 보세요.
| val notificationAgreedAt: String? = "", // TODO #Issue: 52 Default 값 추후 제거 필요 | |
| val notificationAgreedAt: String? = null, // TODO #Issue: 52 Default 값 추후 제거 필요 |
| @@ -1,5 +1,6 @@ | |||
| package com.alarmy.near.presentation.feature.home | |||
|
|
|||
| import android.util.Log | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
작업 내용
response
확인 방법
[HomeScreen] prod url 기준 Home 화면만 해당
참고 사항
N/A
관련 이슈